import request from "@/utils/request";

// 推销员列表
export function salesmanLists(params?: Record<string, any>) {
  return request.get({ url: "/salesman/list", params });
}

// 推销员详情
export function salesmanDetail(params: Record<string, any>) {
  return request.get({ url: "/salesman/detail", params });
}

// 推销员新增
export function salesmanAdd(params: Record<string, any>) {
  return request.post({ url: "/salesman/add", params });
}

// 推销员编辑
export function salesmanEdit(params: Record<string, any>) {
  return request.post({ url: "/salesman/edit", params });
}

// 推销员删除
export function salesmanDelete(params: Record<string, any>) {
  return request.post({ url: "/salesman/del", params });
}

// 统计订单状态数据
export function apiOrderStatis(params: any) {
  return request.get({ url: "/order/statistics", params });
}
// 推销员订单列表
export function apiOrderLists(params: any) {
  return request.post({ url: "/order/referrersOrderList", params });
}

// 推销员服务列表
export function apigoogslsit(params: any) {
  return request.get({ url: "/googs/list", params });
}

// 推销员服务新增
export function apigoogsadd(params: Record<string, any>) {
  return request.post({ url: "/googs/add", params });
}
// 推销员服务修改
export function apigoogsedit(params: Record<string, any>) {
  return request.post({ url: "/googs/edit", params });
}
// 推销员服务删除
export function apigoogsdel(params: Record<string, any>) {
  return request.get({ url: "/googs/del", params });
}
// 推销员服务删除
export function apigoogsdetail(params: Record<string, any>) {
  return request.get({ url: "/googs/detail", params });
}

// 获取服务列表
export function apigoodslsit(params: Record<string, any>) {
  return request.get({ url: "/goods/list", params });
}

// 推销员 - 推销员订单金额统计
export function postsalesmanStatistics(params: Record<string, any>) {
  return request.post({ url: "/order/salesmanStatistics", params });
}
